home *** CD-ROM | disk | FTP | other *** search
- //
- // frontProcess osax
- //
- #include <Aliases.h>
- #include <Memory.h>
- #include <Fonts.h>
- #include <OSEvents.h>
- #include <limits.h>
- #include <Menus.h>
- #include <Processes.h>
- #include <String.h>
- #include <Resources.h>
- #include <Packages.h>
- #include <AppleEvents.h>
- #include <Errors.h>
- #include <GestaltEqu.h>
- #include <Files.h>
- #include <Script.h>
-
- #include "Stufffolder osax.h"
-
- pascal OSErr main( AppleEvent *theEvent, AppleEvent *theReply, long theRefCon)
- {
- #pragma unused( theEvent, theRefCon);
-
- OSErr theErr = noErr;
-
- EventRecord theEventRecord;
-
- Boolean optionDown;
-
- (void)EventAvail( everyEvent, &theEventRecord);
-
- optionDown = ((theEventRecord.modifiers & optionKey) != 0);
-
- theErr = AEPutParamPtr( theReply, keyDirectObject, typeBoolean, &optionDown, sizeof( Boolean));
-
- return theErr;
- }
-